The following instructions explain how to reproduce the results presented in the paper “Social Norm Change, Political Symbols, and Expression of Stigmatized Preferences.”

The analysis is run on MacOS Monterrey by using STATA 16.

The replication files include:

1. A folder named “Data” contains all the datasets necessary to replicate the analyses.

2. A folder named “Code” contains the Stata codes to replicate the results presented in each Figure or Table of the paper. It also includes the R programs employed to plot these results.

3. The folder “Results” is an empty unit storing intermediate datasets generated from Stata do files devoted to data analyses that would be later plotted using the R programs. 

Instruction for replication:

1. Unzip the file “flags1_replication.”

2. To reproduce Figures 1, 2, 3, 4, 5, 6, 8, A.1, A.2, D.1, D.3, E.1, E.2, E.3, F.4, F.5, F.6, F.7, F.8, G.1, G.2, G.3, H.1, H.2, and Tables 1, 3, A.1, E.1, E.2, E.3, F.1, F.2, G.1-G.18, H.1-H.8:

2.1 Open the corresponding Stata do file for this Figure or table in the folder “Code.” The name of this do file will be “For_FigureX.do” or “For_TableX.do.”

2.2 Change the working directories at the beginning of the do file.

2.3 Run the code. This will create a series of intermediate outputs.

2.4 Results shown in the paper are presented in tables and figures. 

2.4.1 For plotted results, open the R script devoted to every Figure. The script for each Figure is named accordingly, i.e., FigureX.R. Each R script will produce the corresponding Figure and store it in the main folder (flags1_replication).

2.4.2 For results in tables, .tex files will automatically be generated and stored in the main folder (flags1_replication). 

3. To reproduce Figures 7, F.2, F.3, and Table 2, please open and read the word file named “README_simulations.” 
